package zx.x.modules.sys.dao;

import org.apache.ibatis.annotations.Param;
import zx.x.modules.sys.entity.SysDistrictEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 省市区
 * 
 * @author x
 * @email x
 * @date 2022-03-03 14:29:53
 */
@Mapper
public interface SysDistrictDao extends BaseMapper<SysDistrictEntity> {
    List<SysDistrictEntity> getParentList(@Param("name") String name);

    List<SysDistrictEntity> getChildList(@Param("parentId")Integer parentId ,@Param("name") String
            name);
}
